using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class MSG_LIST_STABLED_PETS_DEF : DefinitionBase
    {

        public override bool Process()
        {
            ResetPosition();

            UInt64 guid = ReadUInt64();
            if (Direction == 1)
            {
                byte slots = ReadByte();
                byte count = ReadByte();

                for (int i = 0; i < slots; i++)
                {
                    UInt32 PetNumber = ReadUInt32();
                    UInt32 Entry = ReadUInt32();
                    UInt32 Level = ReadUInt32();
                    string Name = ReadString();                             // petname
                    if (ClientBuild < 10314)
                    {
                        UInt32 LoyaltyLevel = ReadUInt32();             // loyalty
                    }
                    byte slotindex = ReadByte();                                // client slot 1 == current pet (0)

                }

                
            }

            return Validate();
        }
    }
}

